<?php

$p = new cmsdream_post();
$posts = $p->getList();
if(empty($posts->Data)) $this->template = '500';

$pager = new cmsdream_pager($this->get_paged_link(), $posts->CurrentPage);
$pager->setPagesize($this->setting->posts_per_page);
$pager->setTotal($posts->Total);

$info = $posts->Information;


